From: Daniel Friesen Date: Sat, 1 Jan 2011 00:59:12 +0000 (+0000) Subject: Fix php notice in vector from r79383. X-Git-Tag: 1.31.0-rc.0~32939 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=1f7e3463044a377e3a3fdf59bc411059b94541b6;p=lhc%2Fweb%2Fwiklou.git Fix php notice in vector from r79383. --- diff --git a/skins/Vector.php b/skins/Vector.php index 2d812c76cf..f9f6b38cfa 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -82,10 +82,12 @@ class VectorTemplate extends BaseTemplate { if ( $wgVectorUseIconWatch ) { $mode = $this->skin->mTitle->userIsWatching() ? 'unwatch' : 'watch'; - $nav['views'][$mode] = $nav['actions'][$mode]; - $nav['views'][$mode]['class'] = rtrim('icon ' . $nav['views'][$mode]['class'], ' '); - $nav['views'][$mode]['primary'] = true; - unset($nav['actions'][$mode]); + if ( isset($nav['actions'][$mode]) ) { + $nav['views'][$mode] = $nav['actions'][$mode]; + $nav['views'][$mode]['class'] = rtrim('icon ' . $nav['views'][$mode]['class'], ' '); + $nav['views'][$mode]['primary'] = true; + unset($nav['actions'][$mode]); + } } foreach ( $nav as $section => $links ) {